/*
* Nom de classe : Interest
*
* Description   : Point d'interet
*
* Version       : 0.0
*
* Date          : 31/01/2014
*
* Update     	: Julian
*/
package org.exia.minisig.model.object;

import java.awt.Point;

/**
* Interest - Point d'interet
* - Represente le point d'inret a afficher sur la carte
*
* @version0.0
* @date 31/01/2013
*/
public class Interest extends DescriptibleElement {
	//VAR
	private Point realPosition;
	private int idMap;
	private Itinerary itinerary;
	private int X;
	private int Y;
	public Point getRealPosition() {
		return realPosition;
	}
	public void setRealPosition(Point realPosition) {
		this.realPosition = realPosition;
	}
	//GET & SET
	public int getX() {
		return X;
	}
	public int getIdMap() {
		return idMap;
	}
	public void setIdMap(int idMap) {
		this.idMap = idMap;
	}
	public void setX(int x) {
		X = x;
	}
	public Itinerary getItinerary() {
		if (itinerary == null){
			itinerary = new Itinerary();
			itinerary.setLabel("");
		} else {
			if (itinerary.getLabel() == null){
				itinerary.setLabel("");
			}
		}
		return itinerary;
	}
	public void setItinerary(Itinerary itinerary) {
		this.itinerary = itinerary;
	}
	public int getY() {
		return Y;
	}
	public void setY(int y) {
		Y = y;
	}
	//CONSTRUCTOR
	public Interest() {
		initializeVar();
	}
	public void initializeVar(){
		realPosition = new Point(0,0);
		itinerary = new Itinerary();
	}
	//METHODE
	
}
